
<div class="heading">
    <h1 id='statusInfo'><? if (isset($info))
    echo $info; ?></h1>

</div>
<div class="tabs"><a tab="#tab_general">Card information</a></div>
<div id="tab_general" class='page'>
    <?php echo form_open_multipart(base_url() . 'index.php/card/add') ?>
    <table class="form">
        <tr>
            <td class="label">Name:</td>
            <td><input type='text' name='name' id='name'></td>
        </tr>

        <tr>
            <td class="label">Price:</td>
            <td><input type='text' name='price' id='price'/></td>
        </tr>
		<tr>
            <td class="label">Type:</td>       
           <td>
                <select name="type" id="type" style = "width:250px">
                    <?php foreach($types as $item){?>
                    <option value="<?php echo $item['name'] ?>" ><?php echo $item['name']?></option>
                    <?php } ?>
                </select>
            </td>
        </tr>
        
        <tr>
            <td class="label">Image</td>
            <td>
                <input type="file" name="image" id="imagefile" size="20" />
            </td>
        </tr>
		<tr>
            <td class="label">Status:</td>       
            <td>
                <select name="status" id="status" style = "width:250px">         
                    <option value="active">active</option>
                    <option value="deactive">deactive</option>
                </select>
            </td>
        </tr>
            
        <tr>
        <td><input type="hidden" value="Add" name="add"/></td>
        <td>
            <input type="submit" value="Lưu" />
			<input type="button" onclick="history.go(-1);" value="Hủy bỏ"/>
        </td>
        </tr>
        </tr>    

    </table>
</form>
</div>

<script type='text/javascript'>
    
   
    function submitform()
    {
        document.updateform.submit();
    }

	
    
    
</script>
<script type="text/javascript">
    $.tabs('.tabs a');    
</script>